-- GENERATED SPELL FOR [Murkblood Invader] --


function spell0_18238(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18238', 629, 1)
end

function spell1_18238(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18238', 30317, 1)
end

function Sorts_18238(pUnit, Event)
local choix_sorts_18238 = math.random(0, 1)
if choix_sorts_18238 == 0 then
pUnit:RegisterEvent('spell0_18238', 1, 1)
end
if choix_sorts_18238 == 1 then
pUnit:RegisterEvent('spell1_18238', 1, 1)
end
end

function mob18238_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18238', math.random(1500, 3000), 1)
end

function mob18238_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18238_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18238_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18238, 1, 'mob18238_Action')
RegisterUnitEvent(18238, 2, 'mob18238_Leave')
RegisterUnitEvent(18238, 3, 'mob18238_Kill')
RegisterUnitEvent(18238, 4, 'mob18238_Die')
